package com.yz.xyt.mapper;

import com.yz.xyt.domain.Clazz;
import com.yz.xyt.domain.Major;
import com.yz.xyt.domain.ResponseResult;
import com.yz.xyt.domain.vo.MajorVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MajorMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Major record);

    int insertSelective(Major record);

    Major selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Major record);

    int updateByPrimaryKey(Major record);

    Major selectByMajorNumber(@Param("majorNumber") String majorNumber);

    int updateByMajorNumberSelective(Major record);

    void deleteByMajorNumber(@Param("majorNumber") String majorNumber);

    String findMajorNumberByName(String majorName);

    List<MajorVo> findMajorList(MajorVo majorVo);
}